﻿@model IEnumerable<MVC3DEMO.Models.Menu>

@{
    ViewBag.Title = "Views";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Views</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            MenuName
        </th>
        <th>
            priority
        </th>
        <th>
            show
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.MenuName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.priority)
        </td>
        <td>
       

            @Html.DisplayFor(modelItem => item.show)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>
